app.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider){

	//设置默认路由
	$urlRouterProvider.when('', '/home');
	
	//路由规则
	$stateProvider
	.state('home', {
		url: '/home',
		templateUrl: 'home/home.html',
		controller: 'HomeCtrl'
	})
	.state('market', {
		url: '/market',
		templateUrl: 'market/market.html',
		controller: 'MarketCtrl'
	})
	.state('car', {
		url: '/car',
		templateUrl: 'car/car.html',
		controller: 'CarCtrl'
	})
	.state('mine', {
		url: '/mine',
		templateUrl: 'mine/mine.html',
		controller: 'MineCtrl'
	})




}])	